package com.jiyun.service;

import com.jiyun.model.Catalog;
import com.jiyun.model.CatalogDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author 朱庆辉
 * @Date 2023/7/28 16:05
 * @Email 1018276870@qq.com
 */
@FeignClient("day09-zhuqinghui-catalog-dev")
public interface CatalogService {
    @RequestMapping("catalog/findAll")
    public List<Catalog> findAll(CatalogDto catalogDto);

    @GetMapping("catalog/findById")
    public Catalog findById(String name);


}
